package com.henghai.zhenxuan.data.api;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

import java.util.ArrayList;

public class PurchaseProductApi implements IRequestApi, IRequestType {

    private String consigneeInfoId;

    private String payForType;

    private ArrayList<ProductInfoBean> productInfoList;

    public PurchaseProductApi(String consigneeInfoId, String payForType, ArrayList<ProductInfoBean> productInfoList) {
        this.consigneeInfoId = consigneeInfoId;
        this.productInfoList = productInfoList;
        this.payForType = payForType;

    }

    @NonNull
    @Override
    public String getApi() {
        return "/system/productInfo/purchaseProduct";
    }

    @NonNull
    @Override
    public BodyType getBodyType() {
        return BodyType.JSON;
    }

    public static class ProductInfoBean {
        private String id;
        private String productQuantity;

        private String prizesId;

        public String getPrizesId() {
            return prizesId;
        }

        public void setPrizesId(String prizesId) {
            this.prizesId = prizesId;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getProductQuantity() {
            return productQuantity;
        }

        public void setProductQuantity(String productQuantity) {
            this.productQuantity = productQuantity;
        }
    }


}
